package csu.jpetstore.jpetstore.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "users")
@JsonIgnoreProperties({"handler", "hibernateLazyInitializer"})
public class Users implements Serializable {
    @Id
    @Column(name = "id")
    private String id;

    @Column(name = "nickname")
    private String nickname;

    @Column(name = "avatar")
    private String avatar;

    @Column(name = "register_time")
    private Date registerTime;

    @Column(name = "register_ip")
    private String registerIp;

    @Column(name = "email")
    private String email;
}
